package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Menu;
import com.itheima.pojo.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MenuDao {

   /* List<Menu> findMenusByRoleId(Integer roleId);

    List<Menu> findMenusByParentMenuId(Integer id);*/

    List<Menu> getAllMenu1(String username);

    List<Menu> getChildrenMenuByParentMenuId(@Param ( "parentMenuId" ) Integer parentMenuId, @Param ( "username" ) String username);

	List<Menu> findAll();

    List<Integer> findMenuIdsByRoleId(Integer id);

    Page<Menu> selectByCondition(String queryString);

    Menu findById(Integer id);

    void add(Menu menu);

    void edit(Menu menu);

    long findCountByMenuId(Integer id);

    void deleteById(Integer id);
}
